package com.gaogzhen.designPattern.immutableObject;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author Administrator
 * @version 1.0
 * @description 车辆追踪
 * @date 2022-10-10 09:32
 */
public class VehicleTracker {
    private Map<String, Location> locMap = new ConcurrentHashMap<>();

    public void updateLocation(String vehicleId, Location location) {
        locMap.put(vehicleId, location);
    }
}
